<?php
/* @var $this VintnerController */
/* @var $model Vintner */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'vintner-form',
	'enableAjaxValidation'=>false,
)); ?>

	<!--<p class="note">Fields with <span class="required">*</span> are required.</p>-->

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'first_name'); ?>
		<?php echo $form->textField($model,'first_name',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'first_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'last_name'); ?>
		<?php echo $form->textField($model,'last_name',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'last_name'); ?>
	</div>

    <div class="inner_block">

        <div class="row">
            <?php echo $form->labelEx($model,'address'); ?>
            <?php echo $form->textField($model,'address',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'address'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'postcode'); ?>
            <?php echo $form->textField($model,'postcode',array('size'=>45,'maxlength'=>45)); ?>
            <?php echo $form->error($model,'postcode'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'place'); ?>
            <?php echo $form->textField($model,'place',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'place'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'country'); ?>
            <?php echo $form->textField($model,'country',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'country'); ?>
        </div>

    </div>


    <div class="inner_block">

        <div class="row">
            <?php echo $form->labelEx($model,'tel'); ?>
            <?php echo $form->textField($model,'tel',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'tel'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'email'); ?>
            <?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'email'); ?>
        </div>

    </div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Anlegen' : 'Speichern'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->